package cn.sc.summer.calculate.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 类名：服务所在资源信息参数
 *
 * @author a-xin
 * @date 2023/12/13 16:42
 */
@Data
@Component
@RefreshScope
@ConfigurationProperties("project.server.weight")
public class ServerWeightProperties {

    /**
     * cpu占评分的权重
     */
    private Double cpu;

    /**
     * jvm虚拟机占评分的权重
     */
    private Double jvm;

    /**
     * 磁盘空间占评分的权重
     */
    private Double space;

    /**
     * 物理内存占评分的权重
     */
    private Double memory;

}
